#ifndef KEYTHREAD_H
#define KEYTHREAD_H

#include <windows.h>
#include <QThread>

class KeyThread : public QThread
{
    Q_OBJECT
public:
    KeyThread(int key, int interval);
    ~KeyThread();
    void setKey(int key);
    void setInterval(int interval);
    void setState(int state);

protected:
    void run();

private:
    int key;
    int interval;
    int state;
    MOUSEINPUT mouseInput;
    INPUT mouseEvent;
    POINT point;


signals:
};

#endif // KEYTHREAD_H
